package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 送洗车的优惠券对象 my_car_coupon
 *
 * @author laowang
 * @date 2023-08-09
 */
@NoArgsConstructor
@Data
public class MyCarCoupon implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer userId;

    /**
     * 0未核销,1已核销
     */
    @Excel(name = "0未核销,1已核销")
    @ApiModelProperty(value = "0未核销,1已核销", required = false)
    private Integer isCheck;

    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间", required = false)
    private Date expireTime;

    /**
     * $column.columnComment
     */
    @Excel(name = "到期时间")
    @ApiModelProperty(value = "到期时间", required = false)
    private String title;

    /**
     * $column.columnComment
     */
    @Excel(name = "到期时间")
    @ApiModelProperty(value = "到期时间", required = false)
    private Double price;

    /**
     * $column.columnComment
     */
    @Excel(name = "到期时间")
    @ApiModelProperty(value = "到期时间", required = false)
    private String desc;

    /**
     * $column.columnComment
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "到期时间", required = false)
    private Date created;

    /**
     * 核销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "核销时间", required = false)
    private Date checkTime;

    /**
     * 数量
     */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量", required = false)
    private Integer num;


}
